package com.shuai.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuai.model.vo.ProjectVO;
import com.shuai.model.vo.SubProjectVO;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface SubProjectDao extends BaseMapper<SubProjectVO> {

    List<SubProjectVO> selectSubProjectList(Map<String, Object> params);

    Map<String, Object> totalSize(Map<String, Object> params);


    Map<String, Object> selectPropAllSubProject(ProjectVO vo);

    int delSubProjectWithProjectId(int projectId);

    int updateSubProjectTaskCompletion(int subPrjectId);

    int updateSub(SubProjectVO vo);

}